<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <head>
        <th:block th:include="include::header('我的积分')" />
    </head>
    <body class="febs-container" id="febs-baseUserScoreRecord" >
        <div class="febs-body layui-fluid" lay-title="我的积分">
            <div class="febs-body-search">
                <form class="layui-form layui-table-form" lay-filter="baseUserScoreRecord-table-form" id="baseUserScoreRecord-table-form">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form-item">
<!--                                <div class="layui-inline" id="baseUserScoreRecord-tenant" th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">-->
<!--                                    <label class="layui-form-label layui-form-label-sm">公司名称</label>-->
<!--                                    <div class="layui-input-inline" style="width: 280px;" >-->
<!--                                        <select name="tenantId" id="tenantId" lay-search="" >-->
<!--                                            <option th:each="item:${tenantList }"-->
<!--                                                    th:value="${item.tenantId}" th:text="${item.tenantName}"-->
<!--                                                    th:selected="${tenantId ==item.tenantId}">-->
<!--                                        </select>-->
<!--                                    </div>-->
<!--                                </div>-->

                                <div class="layui-inline">
                                    <label class="layui-form-label">操作日期</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="operateDate" id="operateDate" autocomplete="off" lay-verify="operateDate"
                                               class="layui-input" placeholder="请输入操作日期">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">积分获取/消耗</label>
                                    <div class="layui-input-inline">
                                        <select name="operateType" id="operateType">
                                            <option value="">请选择</option>
                                            <option value="1">积分获取</option>
                                            <option value="2">积分消耗</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <div id="query" class="layui-btn">
                                        <em class="layui-icon">&#xe615;</em> 查询
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
             </div>
            <div class="febs-table-full">
                <div style="color: red;font-weight: bold;font-size: 16px">当前积分：
                    <span style="font-size: 24px" th:text="${totalScore}"></span>
                </div>
                <table lay-filter="baseUserScoreRecordTable" lay-data="{id: 'baseUserScoreRecordTable'}"></table>
            </div>
        </div>
        <th:block th:include="include::foot" />
        <script data-th-inline="javascript">
            currentTenantId = [[${tenantId}]],
            hasHeadCompanyRole = [[${hasHeadCompanyRole}]],
            totalScore = [[${totalScore}]];
        </script>
        <script th:src="@{/febs/js/base/baseUserScoreRecord/baseUserScoreRecordList.js(v=1)}"></script>
    </body>
</html>
